//package com.bluefuture.modules.app.controller;
//
//
//import com.bluefuture.common.utils.R;
//import com.bluefuture.common.validator.ValidatorUtils;
//import com.bluefuture.modules.app.form.LoginForm;
//import com.bluefuture.modules.app.service.UserService;
//import com.bluefuture.modules.app.utils.JwtUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * APP登录授权
// *
// * @author Mark sunlightcs@gmail.com
// */
//@RestController
//@RequestMapping("/app")
////@Api("APP登录接口")
//public class AppLoginController {
//    @Autowired
//    private UserService userService;
//    @Autowired
//    private JwtUtils jwtUtils;
//
//    /**
//     * 登录
//     */
////    @PostMapping("login")
////    public R login(@RequestBody LoginForm form){
////        //表单校验
////        ValidatorUtils.validateEntity(form);
////
////        //用户登录
////        userService.login(form);
////
////        //生成token
//////        String token = jwtUtils.generateToken(userId);
////
////        Map<String, Object> map = new HashMap<>();
//////        map.put("token", token);
////        map.put("expire", jwtUtils.getExpire());
////
////        return R.ok(map);
////    }
//
//}
